import {postJson,postForm,get,postBlob} from '../api/base'


 /**登陆**/
export const login = (data)=>{
	return postForm("/api/system/login/doLogin",data);
}  

/**拼多多订单列表**/
export const pddOrderPage = (data)=>{
	return postJson("/api/system/order/page/1",data);
} 
/**有赞订单列表**/
export const yzOrderPage = (data)=>{
	return postJson("/api/system/order/page/2",data);
}  
/**微盟订单列表**/ 
export const wmOrderPage = (data)=>{
	return postJson("/api/system/order/page/3",data);
}  
/**孩子王订单列表**/
export const hzwOrderPage = (data)=>{
	return postJson("/api/system/order/page/4",data);
}  

/**拼多多订单列表**/
export const shopList = (data)=>{
	return postForm("/api/system/order/shopList",data);
} 

/**重推拼多多订单**/
export const rePushPDD = (data)=>{
	return postForm("/api/system/order/rePushPDD",data);
} 
/**重推有赞订单**/
export const rePushYZ = (data)=>{
	return postForm("/api/system/order/rePushYZ",data);
} 
/**重推微盟订单**/
export const rePushWM = (data)=>{
	return postForm("/api/system/order/rePushWM",data);
} 
/**重推孩子王订单**/
export const rePushHZW = (data)=>{
	return postForm("/api/system/order/rePushHZW",data);
} 
/** 重推有赞支付单**/
export const rePushYZPay = (data)=>{
	return postForm("/api/system/order/rePushYZPay",data);
}

//取消订单
export const cancelOrder = (data)=>{
	return postForm("/api/system/order/cancelOrder",data);
} 

//获取订单详情
export const getOrderGoods = (data)=>{
	return postForm("/api/system/order/getOrderGoods",data);
} 
//修改商品信息
export const updateGoods = (data)=>{
	return postForm("/api/system/order/updateGoods",data);
} 

//获取拼多多24小时内订单
export const getPddOrder = (data)=>{
	return postForm("/api/system/data/getPddOrder",data);
}

//获取孩子王24小时内订单
export const getHzwOrder = (data)=>{
	return postForm("/api/system/data/getHzwOrder",data);
}

//按订单号获取拼多多订单
export const getOnePdd = (data)=>{
	return postForm("/api/system/data/getOne",data);
}

//导出订单
export const exportExcel = (data)=>{
	return postBlob("/api/system/data/exportExcel",data);
}

 
/**店铺列表**/
export const getUserList = (data)=>{
	return postForm("/api/system/user/getUserPage",data);
} 

/**店铺状态禁用**/
export const updateField = (data)=>{
	return postForm("/api/system/user/updateField",data);
} 

/**店铺编辑**/
export const updateUser = (data)=>{
	return postJson("/api/system/user/updateUser",data);
} 

/**店铺新增**/
export const saveYZShop = (data)=>{
	return postForm("/api/system/user/saveYZShop",data);
} 

/**权限列表**/
export const getPowerList = (data)=>{
	return postJson("/api/system/power/getPowerList",data);
} 

/**权限新增**/
export const savePower = (data)=>{
	return postJson("/api/system/power/save",data);
} 

/**权限编辑**/
export const updatePower = (data)=>{
	return postJson("/api/system/power/update",data);
} 

/**权限删除**/
export const deletePower = (data)=>{
	return postForm("/api/system/power/delete",data);
} 

/**用户列表**/
export const getSysUserPage = (data)=>{
	return postForm("/api/system/sysUser/getUserPage",data);
} 

/**用户新增**/
export const saveSysUser = (data)=>{
	return postJson("/api/system/sysUser/save",data);
} 

/**用户编辑**/
export const updateSysUser = (data)=>{
	return postJson("/api/system/sysUser/update",data);
} 

/**用户删除**/
export const disableSysUser = (data)=>{
	return postForm("/api/system/sysUser/disable",data);
} 

/**用户重置密码**/
export const resetSysPwd = (data)=>{
	return postForm("/api/system/sysUser/resetPwd",data);
} 
/**用户修改密码**/
export const modifySysPwd = (data)=>{
	return postForm("/api/system/sysUser/modifyPwd",data);
}

/**用户角色列表**/
export const roleSyslist = (data)=>{
	return postForm("/api/system/role/list",data);
} 

/**角色列表**/
export const getRolePage = (data)=>{
	return postForm("/api/system/role/getRolePage",data);
} 

/**角色选中权限**/
export const rolePowers = (data)=>{
	return postForm("/api/system/role/rolePowers",data);
} 

/**角色保存**/
export const saveRole = (data)=>{
	return postJson("/api/system/role/save",data);
} 

/**角色编辑**/
export const updateRole = (data)=>{
	return postJson("/api/system/role/update",data);
} 

/**角色删除**/
export const deleteRole = (data)=>{
	return postForm("/api/system/role/delete",data);
} 

/**日志**/
export const logContent = (data)=>{
	return postForm("/api/system/log/content",data);
}

/** 首页统计数据 **/
export const homeData = (data)=>{
	return postForm("/api/system/home/data",data);
}
 
/** 菜单列表**/
export const menuList = (data)=>{
	return postForm("/api/system/menu/list",data);
} 






